﻿using SQLite.Reps.Base;
using System;
using System.Threading.Tasks;

namespace SQLite.Reps
{
    public class CircleRep : Rep<DbEntities.CircleDbEntity>
    {
        public CircleRep(SQLiteAsyncConnection con) : base(con)
        {

        }

        public async Task UpdateNameAsync(Guid exerciseId, String name)
        {
            var sqlCommand = string.Format("Update {0} Set Name = '{1}' where Id = '{2}'", TableName, name, exerciseId);
            var count = await _connection.ExecuteAsync(sqlCommand);
        }
    }
}
